﻿using JinfuyuanProject.Entity;
using JinfuyuanProject.Entity.Filter;
using JinfuyuanProject.Entity.ViewModels;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JinfuyuanProject.Service.Interface
{
    public interface IRoleService
    {
        IQueryable<Role> GetList();

        Role GetModel(int Id);

        bool Delete(Role Role);

        int Insert(Role Role);

        bool Update(Role Role);
        Hashtable Query(RoleFilter filter);
        Hashtable RoleAndPageUpdate(Role role, List<int> PageIds);
        Hashtable RoleAndPageInsert(Role role, List<int> PageIds);
        ModulesPagesVM GetModulePages(int roleId);
    }
}
